<?php
namespace Index\Controller;
use Think\Controller;
class CommonController extends Controller {
	public function _initialize(){
		if(!C('regis_on')){
		    E('网站维护中');
		    die();
		}
		if (ismobile())    header("Location:mobile.php");
	}
}